import { Map } from 'immutable'
import { GET_COLLAPSED } from '../type';
const reducer = (state = Map({
    collapsed: false
}), { type, payload }) => {
    switch (type) {
        case GET_COLLAPSED:
            return state.set('collapsed', !state.get('collapsed'))
        default:
            return state
    }
}
export default reducer